﻿using IOA.MES.DataAccess.Enum;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 库位表
    /// </summary>
    public class VWarehouseLocation : BaseVModel
    {
        private string _warehouseCode = string.Empty;
        private string _areaCode = string.Empty;
        private string _location = string.Empty;
        private string _warehouseName;
        private string _areaName;

        #region Public Property

        ///<Summary>
        /// 仓库代码
        ///</Summary>
        public string WarehouseCode
        {
            get { return string.IsNullOrWhiteSpace(_warehouseCode) ? string.Empty : _warehouseCode; }
            set { _warehouseCode = value; }
        }

        ///<Summary>
        /// 仓库名称
        ///</Summary>
        public string WarehouseName
        {
            get { return string.IsNullOrWhiteSpace(_warehouseName) ? string.Empty : _warehouseName; }
            set { _warehouseName = value; }
        }

        ///<Summary>
        /// 库区代码
        ///</Summary>
        public string AreaCode
        {
            get { return string.IsNullOrWhiteSpace(_areaCode) ? string.Empty : _areaCode; }
            set { _areaCode = value; }
        }

        ///<Summary>
        /// 库区名称
        ///</Summary>
        public string AreaName
        {
            get { return string.IsNullOrWhiteSpace(_areaName) ? string.Empty : _areaName; }
            set { _areaName = value; }
        }

        ///<Summary>
        /// 库位
        ///</Summary>
        public string Location
        {
            get { return string.IsNullOrWhiteSpace(_location) ? string.Empty : _location; }
            set { _location = value; }
        }

        ///<Summary>
        /// 状态
        ///</Summary>
        public Enum.CommonStatus Status { get; set; }

        ///<Summary>
        /// 状态
        ///</Summary>
        public string CNStatus
        {
            get { return !System.Enum.IsDefined(typeof(CommonStatus), Status) ? string.Empty : EnumConvert.ToDesc(Status); }
        }
        #endregion
    }
}
